package sharemem

const (
	SKILL_CHILD_CONDITION_MAX = 3		//子技能条件上限
	SKILL_CHILD_EFFECT_MAX = 10			//子技能效果上限
)

type SkillChild struct {
	Id			int32
	Type		int8
	Effect		[SKILL_CHILD_EFFECT_MAX]int32
}

func (tmp *SkillChild) meminit() {
	var i int8
	tmp.Id = 0
	tmp.Type = 0
	for i=0;i<SKILL_CHILD_EFFECT_MAX;i++ {
		tmp.Effect[i] = 0
	}
}
func (tmp *SkillChild) isUse() bool {
	return tmp.Id > 0
}
func (tmp *SkillChild) getId() int32 {
	return tmp.Id
}

func Get_config_skill_child(id int32) *SkillChild {
	v, ok := GetConfigSkillChildMap()[id]
	if !ok {
		return nil
	}

	return v
}
